home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 059 (1989-12)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 059 (1989-12)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / Utils / cut.doc < prev    next >
Text File  |  1989-11-14  |  2KB  |  53 lines

  1.  
  2.      CUT(1)                       User manual                        CUT(1)
  3.  
  4.  
  5.  
  6.      ›1mNAME
  7.           ›0mcut - cut out parts of each line of a file
  8.  
  9.      ›1mSYNOPSIS
  10.           cut ›0m-›1mc ›0mlist [ files ]
  11.           ›1mcut ›0m-›1mf ›0mlist [ -›1md ›0mchars ] [ -›1msu ›0m] [ files ]
  12.  
  13.      ›1mDESCRIPTION
  14.           ›0m›4mcut›0m  can cut out columns or fields from each line of a file.
  15.           Columns are specified  by  character  positions  (with  tabs
  16.           expanded), fields are separated by delimiters (default ›4mtab›0m &
  17.           ›4mspace›0m )  and  you  select  the  desired ones.  Input is from
  18.           ›4mstdin›0m if no files are given.
  19.  
  20.           The following options are recognised:
  21.  
  22.           ›4mlist›0m is a comma-separated list  of  numbers  or  ranges  (eg
  23.                ›4m1,3-5›0m represents 1, 3, 4 & 5).  ›4m-6›0m is short for ›4m1-6›0m and
  24.                ›4m4-›0m for ›4m4›0m-›4minfinity›0m.
  25.  
  26.           -›1mc ›0m›4mlist›0m    The ›4mlist›0m specifies which columns to take from the
  27.                files,  eg  -›4mc2›0m-›4m10›0m  would take columns 2 to 10, and -›4mc›0m-
  28.                would take the whole file(s), with tabs  expanded  into
  29.                spaces.
  30.  
  31.           -›1mf ›0m›4mlist›0m     Select  fields  specified by the ›4mlist›0m, which are
  32.                separated by the delimiters (see  -›4md›0m).  ›4mLines›0m  ›4mwith›0m  ›4mbe›0m
  33.                ›4mleft›0m ›4muntouched›0m, ›4mexcept›0m ›4mif›0m ›4mthe›0m -›4ms›0m option is used.
  34.  
  35.           -›1md ›0m›4mchars›0m   Change the default delimiters (see above).
  36.  
  37.           -›1ms ›0m    Suppress lines with no delimiters (otherwise they are
  38.                left completely alone).
  39.  
  40.           -›1mu ›0m   Consecutive delimiters are normally considered as  one
  41.                (useful if  you have a blank separated file).  However,
  42.                if  you  want  unix   behaviour,   give   this   option
  43.                (consecutive delimiters  indicate  blank fields).  ( -›4mf›0m
  44.                option only)
  45.  
  46.      ›1mBUGS
  47.           ›0mLines longer than 255 characters will be split.
  48.  
  49.  
  50.  
  51.                                       -1-
  52.  
  53.